<% content_for :css do %>
  <%= stylesheet_link_tag 'new_or_edit','order_mades_show' %>
<% end %>
<div class='form'>
  <div class='top'>
    <div class='title corner'>
      <div>编辑-订做单 OrderMadeForm!</div>
    </div>
  </div>
  <div class='body'>
    <div id='order_made_info' class='line'>
      <%= render :partial => 'show_order_made_info.html', :locals => {:order_made => @order_made, :being_edited => true} %>
    </div>
    <div id="order_made_items" class='line'>
      <%= render :partial => 'order_made_items.html',:locals => { :order_made => @order_made,:being_edited => true } %>
    </div>
    <div id="buttons" class='line'>
      <%= link_to '编辑该单',edit_order_made_url(@order_made), :method => :put, :title => '编辑此单' , :class => :bb %>
      <%= link_to '立即作废',order_made_url(@order_made), :method => :delete, :class => :bb if not @order_made.status.blanked_out? %>
      <%= link_to '返回', :back, :class => :back %>
    </div>
  </div>
</div>